1 : <?php
2 : /*--------------------------------------------------------------------------+
3 : This file is part of eStudy
4 : externaltools/classes/defines.inc.php
5 : - Modulgruppe: Externaltools
6 : - Beschreibung: In der ganzen Modulgruppe gültige Konstanten.
7 : - Version: 1.0, 13/10/05
8 : - Autor(en): Christian Gerhardt <case42@gmx.net>
9 : +---------------------------------------------------------------------------+
10 : This program is free software; you can redistribute it and/or
11 : modify it under the terms of the GNU General Public License
12 : as published by the Free Software Foundation; either version 2
13 : of the License, or any later version.
14 : +---------------------------------------------------------------------------+
15 : This program is distributed in the hope that it will be useful,
16 : but WITHOUT ANY WARRANTY; without even the implied warranty of
17 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 : GNU General Public License for more details.
19 : You should have received a copy of the GNU General Public License
20 : along with this program; if not, write to the Free Software
21 : Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 : +--------------------------------------------------------------------------*/
23 : /**
24 : * In dieser Datei sind verschiedene Konstanten definiert, die an mehreren
25 : * Stellen im MOdul gebraucht werden.
26 : * @package eStudy.ExternalTools
27 : * @version 1.0 13/10/05
28 : * @author Christian Gerhardt <case42@gmx.net>
29 : */
30 : /**Bitmaske für keine Zugriffsbeschränkungen.*/
31 1 : define("SIGNUP_NO_RESTRICTIONS", 0); //keine beschränkungen
32 : /**Bitmaske damit Studenten auf das Tool zugriff haben.*/
33 1 : define("SIGNUP_ONLY_STUDENTS", 1<<0); //nur studenten
34 : /**Bitmaske damit Dozenten auf das Tool zugriff haben.*/
35 1 : define("SIGNUP_ONLY_TEACHERS", 1<<1); //nur dozenten
36 : /**Bitmaske damit Hilfsadmins auf das Tool zugriff haben.*/
37 1 : define("SIGNUP_ONLY_ASSISTENTS", 1<<2); //nur assistenten
38 : /**Bitmaske alle auf das Tool zugriff haben.*/
39 1 : define("SINGUP_ALL", SIGNUP_ONLY_STUDENTS|SIGNUP_ONLY_TEACHERS|SIGNUP_ONLY_ASSISTENTS); //alle
40 : /**Bitmaske um die Zugriffsbits aus einer größeren Bitmaske zu gewinnen*/
41 1 : define("RESTRICTION_TYPE_MASK", 7); //b000111
42 : /***/
43 1 : define("SIGNUP_MANUALY", 0); //manuelle registrierung
44 : /***/
45 1 : define("SIGNUP_AUTOMATICLY", 1<<3); //automatische registrierung
46 : /***/
47 1 : define("SIGNUP_ONLY_SIMPLE_DEMAND", 2<<3); //nur auf einfache anfrage ()
48 : /***/
49 1 : define("SIGNUP_ONLY_FULL_DEMAND", 4<<3); //nur auf anfrage, mit begründung
50 : /***/
51 1 : define("REGISTRATION_TYPE_MASK", 7<<3); //b111000
52 : /***/
53 1 : define("REGISTRATION_STATE_WAITING", 1);
54 : /***/
55 1 : define("REGISTRATION_STATE_ACCEPTED", 2);
56 : /***/
57 1 : define("REGISTRATION_STATE_REFUSED", 3);
58 : /***/
59 1 : define("REGISTRATION_STATE_REFUSED_FINALLY", 4);
60 : /***/
61 1 : define("OPTION_ASIGN_TO_ALL_MY_COURSES", 1<<0);
62 : /***/
63 1 : define("OPTION_ONLY_I_CAN_EDIT", 1<<1);
64 : /***/
65 1 : define("OPTION_NOT_DELETABLE", 1<<2);
66 : /***/
67 1 : define("OPTION_DEFAULTS", OPTION_ASIGN_TO_ALL_MY_COURSES);
|